import Redis from 'ioredis';

const redis = (function () {
	if (process.redis) return process.redis;
	else {
		process.redis = new Redis({port: process.env.REDIS_PORT_6379_TCP_PORT, host: process.env.REDIS_PORT_6379_TCP_ADDR, db: 14})
		return process.redis
	}
})()

export default redis;